package com.jackrain.clouddata.oms.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.jackrain.nea.util.ValueHolder;
import com.jackrain.nea.web.query.QueryEngine;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/4/26.
 */
@Component
public class OrderUpdateDao {

    /**
     * 根据唯一的平台标识查询订单
     * @param outId
     * @return
     */
    public JSONArray queryOrder(Long outId){

        String sql = "select jdp_response from jdp_tb_trade where tid = ?";
        JSONArray resultArr = QueryEngine.getInstance().doQueryObjectArray(sql,new Object[]{outId});
        return resultArr;
    }



}
